Skip to content

Conversation

@growvv
Copy link
Collaborator

@growvv growvv commented Oct 30, 2025

增加对node 21的兼容,移除对node 16的兼容,以通过github action中的vitest

@growvv growvv requested a review from Copilot October 30, 2025 11:43
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR migrates the Vitest configuration from TypeScript to JavaScript (.mjs) and drops Node.js 16.x support from CI workflows.

  • Replaced vitest.config.ts with vitest.config.mjs and removed the copyright header
  • Removed Node.js 16.x from the CI test matrix in both Linux and Windows workflows

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
vitest.config.ts Deleted TypeScript configuration file
vitest.config.mjs Added new JavaScript (ESM) configuration file without copyright header
.github/workflows/windows.yml Removed Node.js 16.x from test matrix
.github/workflows/linux.yml Removed Node.js 16.x from test matrix

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +1 to +10
import { defineConfig } from 'vitest/config';

export default defineConfig({
test: {
include: ['test/unit/**/*.test.ts'],
coverage: {
include: ['src/**'],
},
},
});
Copy link

Copilot AI Oct 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The copyright header present in the original vitest.config.ts has been removed. For consistency with the project's licensing requirements (Apache License 2.0), consider adding the copyright header to this new file.

Copilot uses AI. Check for mistakes.
@growvv growvv merged commit 6f26d32 into main Oct 30, 2025
18 checks passed
@growvv growvv deleted the vitest branch October 30, 2025 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants